﻿using UnityEngine;
using System.Collections;

public class PaddleBehaviour : MonoBehaviour {

	public KeyCode UP;
	public KeyCode DOWN;

	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {
	}

	void FixedUpdate() {
		if (Input.GetKey(UP)) {
			transform.Translate(new Vector3(0.0f, 0.1f, 0.0f));
		}
		else if (Input.GetKey(DOWN)){
			transform.Translate(new Vector3(0.0f, -0.1f, 0.0f));
		}

	}
}
